package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 事故链影响节点-物料 实体类
 * 表名：risk_chain_effect_chemical
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_chain_effect_chemical")
public class RiskChainEffectChemical implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 事故链-影响节点ID
     */
    @Column(name = "effect_id", nullable = false, length = 50)
    private String effectId;
    
    /**
     * 化学品ID
     */
    @Column(name = "chemical_id", nullable = false)
    private Long chemicalId;
    
    @Override
    public String toString() {
        return "RiskChainEffectChemical{" +
            "id=" + id +
            ", effectId=" + effectId +
            ", chemicalId=" + chemicalId +
        '}';
    }
} 